package kr.co.ljw.emp.dao;

import java.util.List;

import kr.co.ljw.emp.bean.EmpBean;

import org.springframework.stereotype.Repository;

import com.osstem.framework.dpl.dataaccess.SqlMapDao;

/**
 * 클래스설명 : EmpDao
 * @version : 2012. 5. 7.
 * @author : jw
 * @분류 : 
 * 설명 : 
 * SpringTdd / package kr.co.ljw.emp.dao;
 */
@SuppressWarnings({"unchecked", "rawtypes"})
@Repository("EmpDao")
public class EmpDao extends SqlMapDao{
	
	//사원 조회
	
	public List<EmpBean> selectEmp(EmpBean empBean) throws Exception {
		return list("selectEmp", empBean);
	}
	
	//사원 입력
	public void insertEmp(EmpBean empBean) throws Exception{
		insert("insertEmp", empBean);
	}
	
	//사원 변경
	public void updateEmp(EmpBean empBean) throws Exception{
		update("updateEmp", empBean);
	}
	
	//사원 삭제
	public void deleteEmp(EmpBean empBean) throws Exception{
		delete("deleteEmp", empBean);
	}

	//사원 희스토리 정보 조회
	public List selectEmpHistory(EmpBean empBean) {
		return list("selectEmpHistory", empBean);
	}
}